From: Camila Ayres Date: Tue, 18 Feb 2025 14:52:11 +0000 (+0100) Subject: fi => excludeItemFileInfo. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~51^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=9f444d83a800c5b0235da80489e1de159793ede7;p=nextcloud-desktop.git fi => excludeItemFileInfo. Signed-off-by: Camila Ayres --- diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 12ceca25a..d9aaeafae 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -1530,7 +1530,6 @@ void Folder::warnOnNewExcludedItem(const SyncJournalFileRecord &record, const QS // for folders only on creation and deletion - if we got a notification // on content change that would create spurious warnings. const auto fullPath = QString{_canonicalLocalPath + path}; - QFileInfo fi(fullPath); if (!FileSystem::fileExists(fullPath)) { return; } @@ -1544,13 +1543,15 @@ void Folder::warnOnNewExcludedItem(const SyncJournalFileRecord &record, const QS return; } + QFileInfo excludeItemFileInfo(fullPath); + const auto excludeItemFilePath = excludeItemFileInfo.filePath(); const auto message = FileSystem::isDir(fullPath) ? tr("The folder %1 was created but was excluded from synchronization previously. " "Data inside it will not be synchronized.") - .arg(fi.filePath()) + .arg(excludeItemFilePath) : tr("The file %1 was created but was excluded from synchronization previously. " "It will not be synchronized.") - .arg(fi.filePath()); + .arg(excludeItemFilePath); Logger::instance()->postGuiLog(Theme::instance()->appNameGUI(), message); }